<style>
        .search_form .layui-inline {
            padding-left: 0px;
        }

        .layui-form-label {
            line-height: 25px;
        }

        .search_form .layui-form-label {
            padding: 5px 5px 0 5px;
        }
        .shouhou {position: absolute;float:left; margin:10px 0px 0px -11px !important; width:7px !important;height:7px !important; z-index:20;}
        .shouhou_no {position: absolute;float:left; z-index:10;}
    </style>

    <div class="search-box">
        <form class="search_form layui-form" lay-filter="order_search_form">
			
			<div class="layui-inline">
			    <label class="layui-form-label layui-bg-blue">请款状态</label>
			    <div class="layui-input-inline">
			        <select name="qingkuan_state" lay-filter="qingkuan_state" id="qingkuan_state">
			            <option value="">全部</option>
			            <option value="0">未请款</option>
						<option value="1">已请款</option>
			        </select>
			    </div>
			</div>

            {if condition="$get_site['site_name'] EQ '主站'"}
            <div class="layui-inline">
                <label class="layui-form-label">分站</label>
                <div class="layui-input-inline">
                    <select name="site_id" lay-filter="site_id" id="site_id" lay-search>
                        <option value="">主站</option>
                        {volist name="site_list" id="list"}
                        <option value="{$list.site_id}" {if condition="$list.site_id EQ SITE_ID" }selected{/if}>
                            {$list.site_name}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            {/if}
			<div class="layui-inline">
			    <label class="layui-form-label">追价订单</label>
			    <div class="layui-input-inline">
			        <select name="zhuijia" lay-filter="zhuijia" id="zhuijia" lay-search>
			            <option value="">全部</option>
			            {volist name="site_list" id="list"}
			            <option value="yes">追价订单</option>
			        </select>
			    </div>
			</div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">城市</label>
                <div class="layui-input-inline">
                    <select name="province" lay-filter="province" lay-verify="required" lay-search></select>
                </div>
                <div class="layui-input-inline">
                    <select name="city" lay-filter="city" lay-verify="required" lay-search></select>
                </div>
                <div class="layui-input-inline" style="display: none;">
                    <select name="area" lay-filter="area" lay-verify="required" lay-search></select>
                </div>
            </div>
			<!-- <div class="layui-inline">
			    <label class="layui-form-label layui-bg-blue">搜索类型</label>
			    <div class="layui-input-inline">
			        <select name="exact" lay-filter="exact" id="exact">
			            <option value="no">精准搜索</option>
			            <option value="yes" selected>非精准搜索</option>
			        </select>
			    </div>
			</div> -->
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">订单类型</label>
                <div class="layui-input-inline">
                    <select name="order_type" lay-filter="order_type" id="order_type">
                        <option value="">全部</option>
                        <option value="1">自然单</option>
                        <option value="2">报备单</option>
                        <option value="3">其他</option>
                        <option value="4">改供货商</option>
                        <option value="5">退货</option>
                        <option value="6">竞价单</option>
                        <option value="7">废止单</option>
                        <option value="8">前报备</option>
                        <option value="9">后报备</option>
                        <option value="10">带量竞价</option>
						<option value="11">不含废止和退货</option>
						<option value="12">医疗器械单</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="order_type_time_start" autocomplete="off" class="layui-input" placeholder="开始日期">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="order_type_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">售后类型</label>
                <div class="layui-input-inline">
                    <select name="shouhou_type" lay-filter="shouhou_type" id="shouhou_type">
                        <option value="">全部</option>
                        <option value="1">无需售后</option>
						<option value="100">有售后</option>
                        <!-- <option value="2">漏发货</option>
                        <option value="3">多发货</option>
                        <option value="4">错发</option>
                        <option value="5">换货</option>
                        <option value="6">退货</option>
                        <option value="7">维修调试</option>
                        <option value="8">安装</option> -->
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">推送状态</label>
                <div class="layui-input-inline">
                    <select name="jun_order_state" lay-filter="jun_order_state" id="jun_order_state">
                        <option value="">全部</option>
                        <option value="0">无效订单</option>
                        <option value="1">待确认</option>
                        <option value="2">待发货</option>
                        <option value="3">待支付</option>
                        <option value="4">待收货</option>
                        <option value="5">已完成</option>
                        <option value="6">已退货</option>
                        <option value="7">已取消</option>
                        <option value="8">待妥投</option>
                        <option value="9">已废止</option>
                    </select>
                </div>
            </div>
            <div class="layui-inline" style="display: none;">
                <label class="layui-form-label layui-bg-blue">地区</label>
                <div class="layui-input-inline">
                    <input type="text" name="api_param" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">金额</label>
                <div class="layui-input-inline">
                    <input type="text" name="min_order_money" autocomplete="off" class="layui-input" placeholder="最低金额">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="max_order_money" autocomplete="off" class="layui-input" placeholder="最高金额">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">订单号</label>
                <div class="layui-input-inline">
                    <input type="text" name="order_no" autocomplete="off" class="layui-input"
                        onkeyup="this.value=this.value.replace(/[, ]/g,'')">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">军单号</label>
                <div class="layui-input-inline">
                    <input type="text" name="out_order_no" autocomplete="off" class="layui-input"
                        onkeyup="this.value=this.value.replace(/[, ]/g,'')">
                </div>
            </div>
			<div class="layui-inline">
			    <label class="layui-form-label layui-bg-orange">精准军单号</label>
			    <div class="layui-input-inline">
			        <input type="text" name="out_order_no_jz" autocomplete="off" class="layui-input"
			            onkeyup="this.value=this.value.replace(/[, ]/g,'')">
			    </div>
			</div>
			<div class="layui-inline">
			    <label class="layui-form-label layui-bg-orange">军ID</label>
			    <div class="layui-input-inline">
			        <input type="text" name="jun_id" autocomplete="off" class="layui-input"
			            onkeyup="this.value=this.value.replace(/[, ]/g,'')">
			    </div>
			</div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">库房</label>
                <div class="layui-input-inline">
                    <input type="text" name="susername" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">业务员</label>
                <div class="layui-input-inline">
                    <input type="text" name="yewuyuan" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">内勤</label>
                <div class="layui-input-inline">
                    <input type="text" name="neiqin" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">助理</label>
                <div class="layui-input-inline">
                    <input type="text" name="zhuli" autocomplete="off" class="layui-input">
                </div>
            </div>
            <!--
        <div class="layui-inline">
            <label class="layui-form-label layui-bg-blue">收货人</label>
            <div class="layui-input-inline">
                <input type="text" name="truename" autocomplete="off" class="layui-input">
            </div>
        </div>-->
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">收货电话</label>
                <div class="layui-input-inline">
                    <input type="text" name="phone" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">地址</label>
                <div class="layui-input-inline">
                    <input type="text" name="j_address" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">下单日期</label>
                <div class="layui-input-inline">
                    <input type="text" name="order_form_create_time_start" autocomplete="off" class="layui-input"
                        placeholder="开始日期">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="order_form_create_time_end" autocomplete="off" class="layui-input"
                        placeholder="结束日期">
                </div>
            </div>
            <div class="layui-inline">
                            <label class="layui-form-label layui-bg-blue">指派</label>
                            <div class="layui-input-inline">
                                <input type="text" name="push_supplier_time_start" autocomplete="off" class="layui-input"
                                    placeholder="开始日期">
                            </div>
                            <div class="layui-input-inline">
                                <input type="text" name="push_supplier_time_end" autocomplete="off" class="layui-input"
                                    placeholder="结束日期">
                            </div>
                        </div>

            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">订单状态</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="order_state" value="" title="全部" checked>
                    <input type="radio" name="order_state" value="1" title="待确认">
                    <input type="radio" name="order_state" value="2" title="等发货">
                    <input type="radio" name="order_state" value="3" title="等收货">
                    <input type="radio" name="order_state" value="4" title="已收货">
                    <input type="radio" name="order_state" value="5" title="完成">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">订单确认</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="supplier_state" value="" title="全部" checked>
                    <input type="radio" name="supplier_state" value="2" title="未分配">
                    <input type="radio" name="supplier_state" value="1" title="已确认">
                    <input type="radio" name="supplier_state" value="3" title="未确认">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="supplier_confirm_time_start" autocomplete="off" class="layui-input"
                        placeholder="开始日期">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="supplier_confirm_time_end" autocomplete="off" class="layui-input"
                        placeholder="结束日期">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">供发货</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="gys_fh_state" value="" title="全部" checked>
                    <input type="radio" name="gys_fh_state" value="2" title="未发">
                    <input type="radio" name="gys_fh_state" value="1" title="已发">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="gys_fh_time_start" autocomplete="off" class="layui-input"
                        placeholder="开始日期">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="gys_fh_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
                </div>
            </div>
			<div class="layui-inline">
			    <label class="layui-form-label layui-bg-blue">配送物流</label>
			    <div class="layui-input-inline">
			        <select name="wuliu" lay-filter="wuliu" id="wuliu" lay-search>
			            
			        </select>
			    </div>
			</div>
			<div class="layui-inline">
			    <label class="layui-form-label layui-bg-blue">订阅状态</label>
			    <div class="layui-input-inline">
			        <select name="dingyue" lay-filter="dingyue" id="dingyue">
			            <option value="">全部</option>
			            <option value="1">成功</option>
			            <option value="2">等待回调</option>
			            <option value="3">未配送</option>
			            <option value="4">自配物流</option>
			            <option value="5">无</option>
			        </select>
			    </div>
			</div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">供收货</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="gys_sh_state" value="" title="全部" checked>
                    <input type="radio" name="gys_sh_state" value="2" title="未收">
                    <input type="radio" name="gys_sh_state" value="1" title="已收">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="gys_sh_time_start" autocomplete="off" class="layui-input"
                        placeholder="开始日期">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="gys_sh_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">入库</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="ruku" value="" title="全部" checked>
                    <input type="radio" name="ruku" value="2" title="未入">
                    <input type="radio" name="ruku" value="1" title="已入">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="ruku_time_start" autocomplete="off" class="layui-input" placeholder="开始日期">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="ruku_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">申请票</label>
                <div class="layui-input-inline">
                    <select name="apply_state" lay-filter="apply_state" id="apply_state">
                        <option value="">全部</option>
                        <option value="1">未申请</option>
                        <option value="2">等待审核</option>
                        <option value="3">审核通过</option>
                        <option value="4">驳回审核</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="apply_time_start" autocomplete="off" class="layui-input"
                        placeholder="申请开始日期">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="apply_time_end" autocomplete="off" class="layui-input"
                        placeholder="申请结束日期">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="apply_shehe_time_start" autocomplete="off" class="layui-input"
                        placeholder="审核开始日期">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="apply_shehe_time_end" autocomplete="off" class="layui-input"
                        placeholder="审核结束日期">
                </div>
            </div>
            
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">电子票</label>
                <div class="layui-input-inline">
                    <select name="returncode" lay-filter="returncode" id="returncode">
                        <option value="">全部</option>
                        <option value="1">未开</option>
                        <option value="2">成功</option>
                        <option value="5">失败</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="invoice_time_start" autocomplete="off" class="layui-input"
                        placeholder="开始日期">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="invoice_time_end" autocomplete="off" class="layui-input"
                        placeholder="结束日期">
                </div>
            </div>
        
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">用户票</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="invoice_state" value="" title="全部" checked>
                    <input type="radio" name="invoice_state" value="1" title="未开">
                    <input type="radio" name="invoice_state" value="2" title="已开">
                </div>
                
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">发货</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="shopping_state" value="" title="全部" checked>
                    <input type="radio" name="shopping_state" value="1" title="未送">
                    <input type="radio" name="shopping_state" value="2" title="已送">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="jc_fh_time_start" autocomplete="off" class="layui-input"
                        placeholder="开始日期">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="jc_fh_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">收货</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="receipt_state" value="" title="全部" checked>
                    <input type="radio" name="receipt_state" value="1" title="未收">
                    <input type="radio" name="receipt_state" value="2" title="已收">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="jc_sh_time_start" autocomplete="off" class="layui-input"
                        placeholder="开始日期">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="jc_sh_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">采购合同</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="caigou_hetong" value="" title="全部" checked>
                    <input type="radio" name="caigou_hetong" value="1" title="未传">
                    <input type="radio" name="caigou_hetong" value="2" title="已传">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">采购票</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="caigou_invoice_duty" value="" title="全部" checked>
                    <input type="radio" name="caigou_invoice_duty" value="1" title="未开">
                    <input type="radio" name="caigou_invoice_duty" value="2" title="已开">
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="caigou_invoice_time_start" autocomplete="off" class="layui-input"
                       placeholder="开始日期">
                 </div>
                 <div class="layui-input-inline">
                    <input type="text" name="caigou_invoice_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
                 </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">采购票审核</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="caigou_state" value="" title="全部" checked>
                    <input type="radio" name="caigou_state" value="1" title="通过">
                    <input type="radio" name="caigou_state" value="2" title="待审核">
                    <input type="radio" name="caigou_state" value="3" title="驳回">
					<input type="radio" name="caigou_state" value="4" title="未提交">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">收款</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="pay_state" value="" title="全部" checked>
                    <input type="radio" name="pay_state" value="2" title="全部收">
                    <input type="radio" name="pay_state" value="4" title="质保金">
                    <input type="radio" name="pay_state" value="3" title="部分收">
                    <input type="radio" name="pay_state" value="1" title="未收">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">付款</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="ghs_pay" value="" title="全部" checked>
                    <input type="radio" name="ghs_pay" value="1" title="全部付">
                    <input type="radio" name="ghs_pay" value="2" title="质保金">
                    <input type="radio" name="ghs_pay" value="3" title="部分付">
                    <input type="radio" name="ghs_pay" value="4" title="未付">
                </div>
                <div class="layui-input-inline">
                                    <input type="text" name="ghs_pay_time_start" autocomplete="off" class="layui-input"
                                        placeholder="开始日期">
                                </div>
                                <div class="layui-input-inline">
                                    <input type="text" name="ghs_pay_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
                                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">监订单</label>
                <div class="layui-input-inline search-radio-box">
                    <input type="radio" name="jun_order_type" value="" title="全部" checked>
                    <input type="radio" name="jun_order_type" value="1" title="监督人">
                    <input type="radio" name="jun_order_type" value="2" title="正常">
                    <input type="radio" name="jun_order_type" value="7" title="废止">
                </div>
            </div>
			<div class="layui-inline">
			    <label class="layui-form-label layui-bg-blue">新地址</label>
			    <div class="layui-input-inline search-radio-box">
			        <input type="radio" name="is_new_addr" value="" title="全部" checked>
			        <input type="radio" name="is_new_addr" value="1" title="是">
			        <input type="radio" name="is_new_addr" value="0" title="否">
			    </div>
			</div>
			<div class="layui-inline">
			    <label class="layui-form-label layui-bg-blue">新手机</label>
			    <div class="layui-input-inline search-radio-box">
			        <input type="radio" name="is_new_phone" value="" title="全部" checked>
			        <input type="radio" name="is_new_phone" value="1" title="是">
			        <input type="radio" name="is_new_phone" value="0" title="否">
			    </div>
			</div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">客服提醒</label>
                <div class="layui-input-inline">
                    <select name="remark_type" lay-filter="remark_type" id="remark_type">
                        <option value="1">包含</option>
                        <option value="2">不包含</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <input type="text" name="remark" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">备注</label>
                <div class="layui-input-inline">
                    <select name="member_remark_type" lay-filter="member_remark_type" id="member_remark_type">
                        <option value="1">包含</option>
                        <option value="2">不包含</option>
                    </select>
                    </div>
                    <div class="layui-input-inline">
                    <input type="text" name="member_remark" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label layui-bg-blue">供货商备注</label>
                <div class="layui-input-inline">
                    <select name="suppler_bz_type" lay-filter="suppler_bz_type" id="suppler_bz_type">
                        <option value="1">包含</option>
                        <option value="2">不包含</option>
                    </select>
                    </div>
                    <div class="layui-input-inline">
                    <input type="text" name="suppler_bz" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <button type="button" id="order_search_btn"
                        class="layui-btn layui-btn-normal layui-btn-sm layui-bg-red">搜 索</button>
                </div>
            </div>
            <div class="pack-up"></div>
        </form>
    </div>
    <table class="layui-hide" id="order_list" lay-filter="order_list"></table>
	<div id="back_data" style="display: none;padding:32px">
        <div class="layui-form layui-form-pane">
            <div class="layui-form-item">
                <label class="layui-form-label">订单号</label>
                <div class="layui-input-inline">
                  <input id="back_order_no" type="text" required lay-verify="required" placeholder="请输入订单号" autocomplete="off" class="layui-input"/>
                </div>
              </div>
             
		<div class="layui-form-item">
            <label class="layui-form-label">初始化</label>
          <div class="layui-input-inline">
			<select id="back_state" lay-filter="">
                <option value="">请选择需要初始化的状态</option>
				<option value="1">指派订单</option>
				<option value="2">供应商发货</option>
				<option value="3">供应商收货</option>
				<option value="4">发货军采</option>
				<option value="5">收货军采</option>
				<option value="6">上传发票</option>
				<option value="7">供应商发票</option>
				<option value="8">电子发票</option>
			</select>
            </div>
		 </div>
		<div class="layui-form-item"><button id="back_btn" class="layui-btn">确认</button></div>
        </div>
        </div>
	</div>
    <script>
        var order_list_url = "{:url('order/ajaxList')}";
        var order_delete_url = "{:url('order/ajaxDelete')}";
		var kuaidiList_url = "{:url('order/KuaidiList')}";
        var order_one_url = "{:url('order/ajaxOneData')}";
        var order_save_url = "{:url('order/saveData')}";
        var order_cols = {$cols};
		var order_downfapiao_url = "{:url('order/downFapiao')}";
        var order_detail_url = "{:url('order/detail')}";
        var order_ruku_url = "{:url('order/imploderuku')}";
		var exportRukuOfOrder_url = "{:url('order/exportRukuOfOrderXsl')}";
        var order_export_url = "{:url('order/exportOrder')}";
		var order_cw_export_url = "{:url('order/exportCwOrder')}";
		var order_export_new_url = "{:url('order/exportOrderNew')}";
        var invoice_export_url = "{:url('order/excelGysInvoiceAll')}";
        var saleinvoice_export_url = "{:url('order/excelSaleInvoiceAll')}";
        var rukuinvoice_export_url = "{:url('order/rukuexportOrder')}";
        var ruku_export_url = "{:url('order/rukuWhereExportOrder')}";
        var option_log_url = "{:url('order/optionLog')}";
        var share_goods_url = "{:url('login/shareGoods')}";
        var zip_down_url = "{:url('order/zipDownAll')}";
        var share_contact_url = "{:url('login/shareContact')}";
		var back_order_url = "{:url('order/backOrder')}";
		var sny_invoice_uri = "{:url('order/snyInvoice')}";
		var create_contract_url = "{:url('order/createContract')}";
		var all_tuipiao_url = "{:url('supplier/buildtpl/allTuipiao')}";
		var all_shouhuo_url = "{:url('supplier/buildtpl/allShouhuo')}";
		var all_fahuo_url = "{:url('supplier/buildtpl/allFahuo')}";
		var daobaocaigoufapiao_uri = "{:url('order/daobaocaigoufapiao')}";
		var mergeInvoice_uri = "{:url('order/mergeInvoice')}";
		var downCght_url = "{:url('order/downCght')}";
        $.getScript('/static/js/order/order.js?time=20240704');
    </script>
    <script type="text/html" id="orderToolbar">
        <div class="layui-btn-container">
        <div class="layui-btn-group">
        <a type="button" data-url="{:url('order/zipDownAll')}" data-title="下载文件" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="downFile">下载文件</a>
		
        </div>
           <div class="layui-btn-group">
            <a type="button" data-id="add_order" data-title="新增竞价单" data-url="{:url('order/tplForm')}" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="addOrder">新增</a>
            <button type="button" class="layui-btn layui-btn-danger layui-btn-sm" lay-event="delOrder">删除</button>
            </div> 
            <div class="layui-btn-group">
            {if condition="menuAuth('order_dcdd')"}
            <a type="button" data-title="导出本次查询订单" data-url="{:url('order/export')}" class="layui-btn layui-btn-warm layui-btn-sm" lay-event="exportAllOrder">导出订单</a>
			<a type="button" data-title="导出订单新版" data-url="{:url('order/exportOrderNew')}" class="layui-btn layui-btn-warm layui-btn-sm" lay-event="exportAllOrderNew">导出订单新版</a>
            {/if}
            {if condition="menuAuth('order_cgff')"}
           
            <a type="button" data-title="导出采购发票明细" class="layui-btn layui-btn-warm layui-btn-sm" lay-event="exportAllGysInvoice">采购发票</a>
            {/if}
            {if condition="menuAuth('order_ruku')"}
            <a type="button" data-title="导出销售发票明细" class="layui-btn layui-btn-warm layui-btn-sm" lay-event="exportAllSaleInvoice">销售发票</a>
			
            <a type="button" data-title="导出入库明细" class="layui-btn layui-btn-warm layui-btn-sm" lay-event="rukuexportOrder">入库表</a>
			<a type="button" data-title="导入订单导出入库明细" class="layui-btn layui-btn-warm layui-btn-sm" id="exportRukuOfOrderXsl" lay-event="exportRukuOfOrderXsl">订单入库表</a>
            {/if}
			<a type="button" data-title="导出财务订单" data-url="{:url('order/exportCwOrder')}" class="layui-btn layui-btn-sm" lay-event="exportCwOrder">导出财务订单</a>
            </div>
			
			<div class="layui-btn-group">
			   <a type="button" data-title="下载发票" data-url="{:url('order/downFapiao')}" class="layui-btn layui-btn-warm layui-btn-sm" lay-event="downFapiao">下载采购发票</a>
			   <a type="button" style="display:none" data-title="打包采购发票" class="layui-btn layui-btn-normal layui-btn-sm dabaocaigoufapiao">打包采购发票</a>
			   <a type="button" data-title="合并采购发票" class="layui-btn layui-btn-normal layui-btn-sm mergeInvoice">合并采购发票</a>
			</div> 
            
            {if condition="menuAuth('order_ddzt')"}
            <div class="layui-btn-group">
            <a data-title="更新全部订单状态" href="http://tailongji.dixintong.com/supplier/buildtpl/allchkjunorderstate.html" class="layui-btn layui-btn-warm layui-btn-sm layui-bg-cyan" target="_blank"><i class="layui-icon layui-icon-auz"></i></a>
            <a data-title="更新有效订单状态" href="http://tailongji.dixintong.com/supplier/buildtpl/chkjunorderstate.html" class="layui-btn layui-btn-warm layui-btn-sm layui-bg-green" target="_blank"><i class="layui-icon layui-icon-senior"></i></a>
            </div>
            <div class="layui-btn-group" style="display:none;">
            <a  type="button"data-title="批量发货" class="layui-btn layui-btn-warm layui-btn-sm layui-bg-green" lay-event="allFahuo">一键发货</a>
              <a type="button" data-title="批量收货" class="layui-btn layui-btn-warm layui-btn-sm layui-bg-green" lay-event="allShouhuo">收货</a>
              <a type="button" data-title="批量推票" class="layui-btn layui-btn-warm layui-btn-sm layui-bg-green" lay-event="allTuipiao">电子发票</a>
              </div>
            {/if}
            {if condition="menuAuth('order_back')"}
          <div class="layui-btn-group">
			<button type="button" class="layui-btn layui-btn-danger layui-btn-sm" lay-event="backOrder">状态初始化</button>
         </div>
             {/if}
             {if condition="menuAuth('order_tbfp')"}
             <div class="layui-btn-group">
			 <a data-title="同步发票" class="layui-btn layui-btn-warm layui-btn-sm layui-bg-green up-sny-invoice" lay-event="snyInvoice">同步发票</a>
			 <a data-title="生成合同" class="layui-btn layui-btn-warm layui-btn-sm layui-bg-cyan up-create-contract" lay-event="createContract">生成合同</a>
             </div>
             {/if}
			 <div class="layui-btn-group">
			 	<a type="button" data-title="导入订单号导出采购合同" class="layui-btn layui-btn-warm layui-btn-sm downCght" lay-event="downCght">xls采购合同</a>
				<a type="button" data-title="导入订单号导出销售发票" class="layui-btn layui-btn-warm layui-btn-sm saleInvoice" lay-event="saleInvoice">xls销售发票</a>
				<a type="button" data-title="导入订单号导出采购发票" class="layui-btn layui-btn-warm layui-btn-sm buyInvoice" lay-event="buyInvoice">xls采购发票</a>
			 </div>
             <div class="layui-btn-group" style="border: 1px solid #c9c9c9;margin-top:-10px;">
             
             {if condition="menuAuth('order_dcrkb')"}
             <span class="layui-btn layui-btn-primary layui-btn-sm" style="border: 0px; margin-bottom:0px; background-color:#f2f2f2;">入库</span>
             <a type="button" data-title="导出入库表" class="layui-btn layui-btn-warm layui-btn-sm" style="margin-bottom:0px;" lay-event="rukuWhereExportOrder">导出</a>
             {/if}
             {if condition="menuAuth('order_drrkb')"}
              <a type="button" data-title="导入入库表" class="layui-btn layui-btn-normal layui-btn-sm" style="margin-bottom:0px;" id="orderruku" lay-event="orderruku">导入</a>
              {/if}
              </div>
        </div>
    </script>
    <script type="text/html" id="order_tool">
        <div class="layui-btn-group">
            <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="option_log" data-title="操作日志"><i
                    class="layui-icon layui-icon-log"></i></a>
            <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="share_goods" data-title="分享商品"><i
                    class="layui-icon layui-icon-share"></i></a>
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="share_contact" data-title="分享联系人"><i
                    class="layui-icon layui-icon-user"></i></a>
            <a class="layui-btn layui-btn-danger layui-btn-xs hide-update" lay-event="update"><i
                    class="layui-icon layui-icon-up"></i></a>
        </div>
    </script>
    <script type="text/html" id="member_infoTpl">
    {{# return d.member_info['username']; if(d.member_info['realname'] == ''){ return d.member_info['username']; } else { return d.member_info['realname']; } }}
    </script>
    <script type="text/html" id="order_stateTpl">
    {{# var text = ''; switch(d.order_state){ case 1: text = '<span style="color: #FF5722;">待确认</span>'; break; case 2: text = '<span style="color: #FFB800;">等待发货</span>'; break; case 3: text = '<span style="color: #01AAED;">等待收货</span>'; break; case 4: text = '<span style="color: #2F4056;">已收货</span>'; break; case 5: text = '<span style="color: #009688;">订单完成</span>'; break; case -1: text = '<span style="color: #c2c2c2;">已取消</span>'; break; default: text = '错误'; break; } return text; }}
    </script>
    <script type="text/html" id="jun_order_stateTpl">
    {{# var text = ''; 
    switch(d.jun_order_state){ 
        case 0: text = '<span style="color: #FF5722;">无效订单</span>';break;
        case 1: text = '<span style="color: #FF5722;">待确认</span>'; break; 
        case 2: text = '<span style="color: #FFB800;">待发货</span>'; break; 
        case 3: text = '<span style="color: #01AAED;">待支付</span>'; break; 
        case 4: text = '<span style="color: #2F4056;">待收货</span>'; break; 
        case 5: text = '<span style="color: #009688;">已完成</span>'; break; 
        case 6: text = '<span style="color: #c2c2c2;">已退货</span>';break;
        case 7: text = '<span style="color: #c2c2c2;">已取消</span>';break;
        case 8: text = '<span style="color: #c2c2c2;">待妥投</span>'; break; 
        case 9: text = '<span style="color: #c2c2c2;">已废止</span>'; break; 
        default: text = '<span style="color: #c2c2c2;">未同步</span>'; break; 
    } 
        return text; 
    }}
    </script>

    <script type="text/html" id="pay_typeTpl">
    {{# switch (d.pay_type){ case 1: return '<span style="color: #FF5722;">货到付款</span>'; break; case 2: return '<span style="color: #FFB800;">在线支付</span>'; break; case 3: return '<span style="color: #01AAED;">账期支付</span>'; break; case 4: return '<span style="color: #2F4056;">银行转账</span>'; break; default: break; } }}
    </script>
    <script type="text/html" id="pay_stateTpl">
    {{# if(d.pay_state == 1){}}
        <div class="layui-anim circle layui-bg-red" data-title="未支付{{d.pay_time}}">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else {}}
            <div class="layui-anim circle layui-bg-green" data-title="已支付">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# }}}
    </script>
    <script type="text/html" id="rukuTpl">
    {{# if(d.ruku == 1){}}
        <div class="layui-anim circle layui-bg-green" data-title="已入库{{d.ruku_time}}">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else {}}
            <div class="layui-anim circle layui-bg-red" data-title="未入库">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
        {{# }}}
    </script>
    <script type="text/html" id="is_invoiceTpl">
    {{# switch (d.is_invoice){ case 1: return '<span style="color: #FF5722;">不开票</span>'; break; case 2: return '<span style="color: #FFB800;">独立开票</span>'; break; case 3: return '<span style="color: #01AAED;">统一开票</span>'; break; default: break; } }}
    </script>
    <script type="text/html" id="invoice_stateTpl">
    {{# if(d.invoice_state == 2){}}
        <div class="layui-anim circle layui-bg-green" data-title="已开票{{d.invoice_time}}">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else {}}
            <div class="layui-anim circle layui-bg-red" data-title="未开票">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# }}}
    </script> 

    <script type="text/html" id="out_order_noTpl">
        {{# if(d.jun_order_state == 1) { }}
            <div class="layui-anim shouhou" style="font-size:6px;color:#ff0000;margin-top:-5px !important;">监</div>
            <div style="color:#ff0000;">{{d.out_order_no}}</div>
        {{# } else if(d.jun_order_state == 7) { }}
            <div class="layui-anim shouhou" style="font-size:6px;margin-top:-5px !important;">废</div>
            <div style="color:#cccccc;">{{d.out_order_no}}</div>
        {{# } }}
    
    {{# if(d.shouhou_type == 1){}}
     <div style="position: absolute;float:left; z-index:10;">{{d.out_order_no}}</div>
    {{# } else if(d.shouhou_type == 2){ }}
       <div class="layui-anim circle shouhou layui-bg-red" data-title="漏发货">
        </div><div class="shouhou_no">{{d.out_order_no}}</div>
        {{# } else if(d.shouhou_type == 3){ }}
            <div class="layui-anim circle shouhou layui-bg-red" data-title="多发货">
            </div><div class="shouhou_no">{{d.out_order_no}}</div>
            {{# } else if(d.shouhou_type == 4){ }}
                <div class="layui-anim circle shouhou layui-bg-red" data-title="错发">
                </div><div class="shouhou_no">{{d.out_order_no}}</div>
                {{# } else if(d.shouhou_type == 5){ }}
                    <div class="layui-anim circle shouhou layui-bg-red" data-title="换货">
                    </div><div class="shouhou_no">{{d.out_order_no}}</div>
                    {{# } else if(d.shouhou_type == 6){ }}
                        <div class="layui-anim circle shouhou layui-bg-red" data-title="退货">
                        </div><div class="shouhou_no">{{d.out_order_no}}</div>
                        {{# } else if(d.shouhou_type == 7){ }}
                        <div class="layui-anim circle shouhou layui-bg-red" data-title="维修调试">
                        </div><div class="shouhou_no">{{d.out_order_no}}</div>
                        {{# } else if(d.shouhou_type == 8){ }}
                        <div class="layui-anim circle shouhou layui-bg-red" data-title="安装">
                        </div><div class="shouhou_no">{{d.out_order_no}}</div>
                        {{# }}}
    </script>
    <script type="text/html" id="supplier_nameTpl">

         {{d.supplier_name}}
 
    </script>
	<script type="text/html" id="is_new_addrTpl">
	{{# if(d.is_new_addr == 1){}}
	    <div class="layui-anim circle layui-bg-red" data-title="是">
	        <i class="layui-icon layui-icon-radio"></i>
	    </div>
	{{# } else {}}
	            <div class="layui-anim circle layui-bg-green" data-title="否">
	                <i class="layui-icon layui-icon-radio"></i>
	            </div>
	{{# }}}
	</script>
	<script type="text/html" id="is_new_phoneTpl">
	{{# if(d.is_new_phone == 1){}}
	    <div class="layui-anim circle layui-bg-red" data-title="是">
	        <i class="layui-icon layui-icon-radio"></i>
	    </div>
	{{# } else {}}
	            <div class="layui-anim circle layui-bg-green" data-title="否">
	                <i class="layui-icon layui-icon-radio"></i>
	            </div>
	{{# }}}
	</script>
	
    <script type="text/html" id="supplier_stateTpl">
    {{# if(d.supplier_state == 2){}}
        <div class="layui-anim circle layui-bg-black" data-title="未指派">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else if(d.supplier_state == 1){ }}
            <div class="layui-anim circle layui-bg-green" data-title="已确认{{d.supplier_confirm_time}}">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# } else {}}
                <div class="layui-anim circle layui-bg-red" data-title="未确认{{d.push_supplier_time}}">
                    <i class="layui-icon layui-icon-radio"></i>
                </div>
                {{# }}}
    </script>
    <script type="text/html" id="shopping_stateTpl">
    {{# if(d.shopping_state == 1){}}
        <div class="layui-anim circle layui-bg-red" data-title="未配送">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else if(d.shopping_state == 2){ }}
            <div class="layui-anim circle layui-bg-green" data-title="已配送{{d.shopping_time}}">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# } else {}}
                <div class="layui-anim circle layui-bg-black" data-title="部分配送">
                    <i class="layui-icon layui-icon-radio"></i>
                </div>
                {{# }}}
    </script>
    <script type="text/html" id="receipt_stateTpl">
    {{# if(d.receipt_state == 1){}}
        <div class="layui-anim circle layui-bg-red" data-title="未收货">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else if(d.receipt_state == 2){ }}
            <div class="layui-anim circle layui-bg-green" data-title="已收货{{d.receipt_time}}">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# } else {}}
                <div class="layui-anim circle layui-bg-black" data-title="部分收货">
                    <i class="layui-icon layui-icon-radio"></i>
                </div>
                {{# }}}
    </script>
    <script type="text/html" id="cancel_typeTpl">
    {{# if(d.cancel_type == 1){}}
        <div class="layui-anim circle layui-bg-red" data-title="客户取消">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else if(d.cancel_type == 2) {}}
            <div class="layui-anim circle layui-bg-orange" data-title="管理员取消">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# } else{ }}
                {{# }}}
    </script>
	<script type="text/html" id="dingyueTpl">
		{{# if(d.dingyue == 1){}}
		<div class="layui-anim circle layui-bg-green" data-title="{{d.wuliu}}-成功">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
		{{# } else if(d.dingyue == 2){ }}
		<div class="layui-anim circle layui-bg-red" data-title="{{d.wuliu}}-等待回调">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
		{{# } else if(d.dingyue == 3){ }}
		<div class="layui-anim circle layui-bg-orange" data-title="未配送">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
		{{# } else if(d.dingyue == 4){ }}
		<div class="layui-anim circle layui-bg-cyan" data-title="自配物流">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
		{{# } else if(d.dingyue == 5){ }}
		<div class="layui-anim circle layui-bg-blue" data-title="无">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
		{{# } }}
	</script>
    <script type="text/html" id="ghs_payTpl">
    {{# if(d.ghs_pay == 1){}}
        <div class="layui-anim circle layui-bg-green" data-title="全部支付{{d.ghs_pay_time}}">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else if(d.ghs_pay == 2){ }}
            <div class="layui-anim circle layui-bg-black" data-title="质保金支付{{d.ghs_pay_time}}">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# } else if(d.ghs_pay == 3){ }}
                <div class="layui-anim circle layui-bg-cyan" data-title="部分支付{{d.ghs_pay_time}}">
                    <i class="layui-icon layui-icon-radio"></i>
                </div>
                {{# } else if(d.ghs_pay == 4){ }}
                    <div class="layui-anim circle layui-bg-red" data-title="未支付">
                        <i class="layui-icon layui-icon-radio"></i>
                    </div>
                    {{# } else {}}
                        <div class="layui-anim circle layui-bg-red" data-title="未支付">
                            <i class="layui-icon layui-icon-radio"></i>
                        </div>
                        {{# }}}
    </script>
    <script type="text/html" id="shoukuan_payTpl">
    {{# if(d.shoukuan_pay == 1){}}
        <div class="layui-anim circle layui-bg-green" data-title="全部收款">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else if(d.shoukuan_pay == 2){ }}
            <div class="layui-anim circle layui-bg-black" data-title="质保金收款">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# } else if(d.shoukuan_pay == 3){ }}
                <div class="layui-anim circle layui-bg-cyan" data-title="部分收款">
                    <i class="layui-icon layui-icon-radio"></i>
                </div>
                {{# } else if(d.shoukuan_pay == 4){ }}
                    <div class="layui-anim circle layui-bg-red" data-title="未收款">
                        <i class="layui-icon layui-icon-radio"></i>
                    </div>
                    {{# } else {}}
                        <div class="layui-anim circle layui-bg-orange" data-title="申请收款">
                            <i class="layui-icon layui-icon-radio"></i>
                        </div>
                        {{# }}}
    </script>
    <script type="text/html" id="caigou_invoice_dutyTpl">
    {{# if(d.caigou_invoice_duty){}}
        <div class="layui-anim circle layui-bg-green" data-title="已开票{{d.caigou_invoice_time}}">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else {}}
            <div class="layui-anim circle layui-bg-red" data-title="未开票">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# }}}
    </script>
    <script type="text/html" id="caigou_hetongTpl">
    {{# if(d.caigou_hetong){}}
        <div class="layui-anim circle layui-bg-green" data-title="已上传{{d.caigou_hetong_time}}">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else {}}
            <div class="layui-anim circle layui-bg-red" data-title="未上传">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# }}}
    </script>
    <script type="text/html" id="gys_fh_stateTpl">
    {{# if(d.gys_fh_state == 1){}}
        <div class="layui-anim circle layui-bg-green" data-title="已发货{{d.gys_fh_time}}">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else {}}
            <div class="layui-anim circle layui-bg-red" data-title="未发货">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# }}}
    </script>
    <script type="text/html" id="gys_sh_stateTpl">
    {{# if(d.gys_sh_state == 1){}}
        <div class="layui-anim circle layui-bg-green" data-title="已收货{{d.gys_sh_time}}">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else {}}
            <div class="layui-anim circle layui-bg-red" data-title="未收货">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# }}}
    </script>
 <script type="text/html" id="apply_stateTpl">
    {{# if(d.apply_state === 1){}}
        <div class="layui-anim circle layui-bg-red" data-title="未申请">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else if(d.apply_state === 2){ }}
            <div class="layui-anim circle layui-bg-black" data-title="等待审核{{d.apply_time}}">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
        {{# } else if(d.apply_state === 3){ }}
            <div class="layui-anim circle layui-bg-green" data-title="审核通过{{d.apply_shehe_time}}">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
        {{# } else if(d.apply_state === 4){ }}
            <div class="layui-anim circle layui-btn-warm" data-title="驳回审核">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
        {{# } else {}}
            <div class="layui-anim circle layui-bg-red" data-title="未申请">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# }}}
    </script>
<script type="text/html" id="returncodeTpl">
    {{# if(d.returncode === null){}}
        <div class="layui-anim circle layui-bg-red" data-title="未申请">
            <i class="layui-icon layui-icon-radio"></i>
        </div>
        {{# } else if(d.returncode == '成功'){ }}
            <div class="layui-anim circle layui-bg-green" data-title="开具成功">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
        {{# } else {}}
            <div class="layui-anim circle layui-bg-black" data-title="开具失败">
                <i class="layui-icon layui-icon-radio"></i>
            </div>
            {{# }}}
    </script>
    <script type="text/html" id="order_typeTpl">
    {{# if(d.order_type == 1){}}
        自然订单
        {{# } else if(d.order_type == 2){ }}
            报备单
            {{# } else if(d.order_type == 3){ }}
                其他订单
                {{# } else if(d.order_type == 4){ }}
                    改库房
                    {{# } else if(d.order_type == 5){ }}
                        退货
                        {{# } else if(d.order_type == 6){ }}
                            竞价单
                            {{# } else if(d.order_type == 7){ }}
                            废止订单
                            {{# } else if(d.order_type == 8){ }}
                            前报备
                            {{# } else if(d.order_type == 9){ }}
                            后报备
                            {{# } else if(d.order_type == 10){ }}
                            带量竞价
                            {{# }}}
    </script>
